<template>
  <div class="app-container">
    <el-row :gutter="20">
      <table>
        <tr>
          <td style="width:100px;">&nbsp;</td>
          <td>数据库备份</td>
        </tr>
        <br>
        <tr>
          <td style="text-align:right;">路径：</td>
          <td><el-input placeholder="系统默认路径" style="width:300px" value="D:\bakDb\security\"></el-input></td>
        </tr>
        <br>
        <tr>
          <td></td>
          <td>
            <el-button type="primary" @click="submit">备份</el-button>
          </td>
        </tr>
         <tr>
          <td style="height:100px;">&nbsp;</td>
          <td>
            &nbsp;
          </td>
        </tr>
       <tr>
          <td>&nbsp;</td>
          <td>数据库还原</td>
        </tr>
        <br>
        <tr>
          <td style="text-align:right;">路径：</td>
          <td><el-input placeholder="系统默认路径" style="width:300px" value="D:\bakDb\security\"></el-input></td>
        </tr>
        <br>
        <tr>
          <td></td>
          <td>
            <el-button type="default">还原操作须系统管理员手动操作</el-button>
          </td>
        </tr>
      </table>

    </el-row>
  </div>
</template>

<script>

  import { backup } from "@/api/tool/tool";
  import { getToken } from "@/utils/auth";

  export default {
    data() {
      return {
        BackUpData:[],
      };
    },
    created() {
      //this.getListChannle();
    },

    methods: {
      submit () {
        backup(this.form).then(rs =>{
          this.msgSuccess("备份成功");
        })
      }

    }

  };
</script>
<style>
</style>
